<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>日志列表</title>
    <link href="__ADMIN__/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="__ADMIN__/css/style.css" />
    <link href="__ADMIN__/assets/css/codemirror.css" rel="stylesheet">
    <link rel="stylesheet" href="__ADMIN__/assets/css/ace.min.css" />
    <link rel="stylesheet" href="__ADMIN__/font/css/font-awesome.min.css" />
    <script src="__ADMIN__/js/jquery-1.9.1.min.js"></script>
    <script src="__ADMIN__/assets/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__ADMIN__/Widget/Validform/5.3.2/Validform.min.js"></script>
    <script src="__ADMIN__/assets/js/typeahead-bs2.min.js"></script>
    <script src="__ADMIN__/assets/js/jquery.dataTables.min.js"></script>
    <script src="__ADMIN__/assets/js/jquery.dataTables.bootstrap.js"></script>
    <script src="__ADMIN__/assets/layer/layer.js" type="text/javascript"></script>
    <script src="__ADMIN__/js/lrtk.js" type="text/javascript"></script>
    <script src="__ADMIN__/assets/layer/layer.js" type="text/javascript"></script>
    <script src="__ADMIN__/assets/laydate/laydate.js" type="text/javascript"></script>
</head>

<body>
    <div class="crumbs">
        <ul>
            <li>
                <a class="active" href="javascript:;">日志列表</a>
            </li>
            <li>
                <a class="active" href="{:url('Rbac/logType')}">日志类型</a>
            </li>
        </ul>
    </div>
    <div class="page-content clearfix">
        <div class="administrator">
            <div class="d_Confirm_Order_style">
                <form action="" method="post">
                    <div class="search_style">
                        <ul class="search_content clearfix">
                            <li>
                                <label class="l_f">日志中文名称:</label>
                                <input name="username" type="text" class="text_add" value="{if condition=" $username neq 'n' "} {$username} {/if}"/>
                            </li>
                            <li>
                                <label class="l_f">日志类型:</label>
                                <select name="status">
                                    <option value="-1" {if condition="$log_type eq -1" } selected {/if}>==请选择==</option>
                                    {volist name="log_type_data" id="vo"}
                                    <option value="{$key}" {if condition="$log_type eq $key" } selected {/if}>=={$vo}==</option>
                                    {/volist}
                                </select>
                            </li>
                            <li style="width:90px;">
                                <button type="submit" class="btn_search">
                                    <input type="hidden" name="page" value="1">
                                    <i class="fa fa-search"></i>查询
                                </button>
                            </li>
                        </ul>
                    </div>
                </form>
                <!--操作-->
                <!-- <div class="border clearfix">
                    <span class="l_f">
                        <a href="{:url('Rbac/addRole')}" class="btn btn-warning">
                            <i class="fa fa-plus"></i> 添加日志</a>
                        <a href="javascript:;" class="btn btn-danger" onclick="formAutoSubmit('id','right_form')"><i class="fa fa-trash"></i> 批量删除</a>
                    </span>
                </div> -->
                <!--日志列表-->
                <div class="clearfix">
                    <div class="table_menu_list">
                        <form action="{:url('rbac/delLog')}" method="post" class="right_form">
                            <table class="table table-striped table-bordered table-hover">
                                <thead>
                                    <tr>
                                        <th width="25px">
                                            <label>
                                                <input type="checkbox" class="ace">
                                                <span class="lbl"></span>
                                            </label>
                                        </th>
                                        <th>日志id</th>
                                        <th>日志内容</th>
                                        <th>操作用户</th>
                                        <th>登录时间</th>
                                        <th>登陆ip</th>
                                        <th>日志类型</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {volist name="page_data" id="show"}
                                    <tr>
                                        <td>
                                            <label>
                                                <input type="checkbox" class="ace id" name="id[]" value="{$show['id']}">
                                                <span class="lbl"></span>
                                            </label>
                                        </td>
                                        <td>{$show.log_id}</td>
                                        <td>{$show.log_info}</td>
                                        <td>{$show.username}</td>
                                        <td>{$show.log_time | date = 'Y-m-d H:i:s'}</td>
                                        <td>{$show.log_ip}</td>
                                        <td>{$log_type_data[$show['log_type']]}</td>
                                    </tr>
                                    {/volist}
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-2">
                        <div class="dataTables_info">共 {$page_total} 条</div>
                    </div>
                    <div class="col-sm-5">
                        <div class="dataTables_paginate paging_bootstrap">
                            <ul class="pagination">
                                <?php echo(htmlspecialchars_decode($page));?>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script src="__ADMIN__/js/common.js" type="text/javascript"></script>
</html>